package com.example.demo1.dao;

import com.example.demo1.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * @author zhw
 */
@Mapper
public interface UserDAO {

    @Select("select * from user")
    List<User> findAll();

    User findOne(Long id);

    List<User> findByCreateTime(@Param("beforeTime") Date beforeTime,@Param("afterTime") Date afterTime);



}
